const gulp =require('gulp')
const gulp =require('gulp-zip')
var gutil = require('gulp-util');
var ftp = require('gulp-ftp');

gulp.task('copy',function(){
    return gulp.src('run/*')
    .pipe(gulp.dest('dist/'))

})
gulp.task('zip',()=>{
     gulp.src('dist/*')
     .pipe(zip('code.zip'))
    .pipe(gulp.dest('./'))

})


 
gulp.task('ftp', function () {
    return gulp.src('code.zip')
        .pipe(ftp({
            host: 'website.com',
            user: 'johndoe',
            pass: '1234'
        }))
       
        .pipe(gutil.noop());
});